using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Collections.ObjectModel;


namespace RssReader
{
    public class RssReaderViewModel 
    {
        public RssReaderViewModel()
        {
            // http://blogs.msdn.com/brada/rss.xml
            Feeds = new ObservableCollection<FeedViewModel>() {
               new FeedViewModel() { FeedName = "wotudo", FeedUrl = "http://wotudo.net/blogs/wotudo/rss.aspx"},
               new FeedViewModel() { FeedName = "Mike Taulty", FeedUrl = "http://feeds.feedburner.com/mtaulty" },
               new FeedViewModel() { FeedName = "Mike Ormond", FeedUrl = "http://feeds.feedburner.com/mikeormond" },
               new FeedViewModel() { FeedName = "Eric Nelson", FeedUrl = "http://feeds2.feedburner.com/iupdateable" },
               new FeedViewModel() { FeedName = "Andrew Fryer", FeedUrl = "http://feeds.feedburner.com/technet/DeepFat" },
               new FeedViewModel() { FeedName = "ubelly Web Dev", FeedUrl = "http://feeds.feedburner.com/ubelly/" },
               new FeedViewModel() { FeedName = "ubelly Events", FeedUrl = "http://feeds.feedburner.com/ubelly/" }
               };

          
        }
        public ObservableCollection<FeedViewModel> Feeds { get; private set; }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            if (null != PropertyChanged)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}